package com.asw.springboot.controller;

import com.asw.springboot.common.CommonController;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by hxq on 2017/5/25.
 */
@Controller
public class ThymeleafController extends CommonController{

    @RequestMapping(value = "/toIndexPage")
    public String toIndexPage(String name, Model model){
        model.addAttribute("cityName",name);
        return "index";
    }
}
